package vell.velllock;

import vell.velllock.service.MyLockScreenService;
import vell.velllock.util.VellLockUtil;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class BootReceiver extends BroadcastReceiver {

	static final String ACTION = "android.intent.action.BOOT_COMPLETED";

	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(ACTION)) {
			Toast.makeText(context, "VellLock starting", Toast.LENGTH_SHORT).show();
			VellLockUtil.startService(context, MyLockScreenService.class);
		}
	}
}
